'HTTP_X_FORWARDED_PROTO')); $http = (($port == 443) || $proto == 'https' || ($https && $https != 'off')) ? 'https' : 'http'; return "$http://$host/"; } ?>